package com.company.behavioral.state_pattern.client;

import com.company.behavioral.state_pattern.context.Account;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/9/7 14:40
 **/
public class Client {

    public static void main(String[] args) {
        Account acc = new Account("老大",100);
        acc.deposit(1000);
        acc.withdraw(2000);
        acc.deposit(3000);
        acc.withdraw(4000);
        acc.withdraw(1000);
        acc.computeInsterst();
    }
}
